package pers.ht.mbpo.service;

import net.sf.json.JSONArray;
import pers.ht.mbpo.bean.Match;
import pers.ht.mbpo.dao.MatchDao;

import java.util.List;

public class test {
    public static void main(String[] args) {

        MatchDao m = new MatchDao();
        List<Match> matches = m.query();
        String matchJson = JSONArray.fromObject(matches).toString();
        System.out.println(matchJson);
    }
}
